package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.web3j.abi.datatypes.primitive.Int;

import java.util.Date;

/**
 * @Description:TODO(生产订单实体类)
 *
 * @author: Wonder
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sfc_optrpt")
@ApiModel(value="t_sfc_optrpt对象", description="工序汇报表")

public class SfcOptrpt extends Model<SfcOptrpt>{
    @TableId(value ="id", type = IdType.AUTO)
    @ApiModelProperty(name = "id" , value = "编号")
    private Long id;

    @TableField(value = "BillNo")
    @ApiModelProperty(name = "BillNo" , value = "单据编号")
    private String BillNo;

    @TableField(value = "PrdBillNo")
    @ApiModelProperty(name = "PrdBillNo" , value = "生产订单编号")
    private String PrdBillNo;

    @TableField(value = "Date")
    @ApiModelProperty(name = "Date" , value = "单据日期")
    private Date Date;

    @TableField(value = "PrtUser")
    @ApiModelProperty(name = "PrtUser" , value = "汇报人")
    private String PrtUser;

    @TableField(value = "WorkShopNo")
    @ApiModelProperty(name = "WorkShopNo" , value = "车间编码")
    private String WorkShopNo;

    @TableField(value = "WorkShopName")
    @ApiModelProperty(name = "WorkShopName" , value = "车间名称")
    private String WorkShopName;

    @TableField(value = "ErpBillNo")
    @ApiModelProperty(name = "ErpBillNo" , value = "工序计划单号")
    private String ErpBillNo;

    @TableField(value = "OperpNo")
    @ApiModelProperty(name = "OperpNo" , value = "工序号")
    private Long OperpNo;

    @TableField(value = "beginandend")
    @ApiModelProperty(name = "beginandend" , value = "首序末序")
    private int beginandend;


    @TableField(value = "Status")
    @ApiModelProperty(name = "Status" , value = "状态")
    private String Status;

    @TableField(value = "PushDown")
    @ApiModelProperty(name = "PushDown" , value = "是否下推入库单")
    private Boolean PushDown;

    @TableField(value = "QuaQty")
    @ApiModelProperty(name = "QuaQty" , value = "合格数量(包装间用)")
    private Double QuaQty;


    @TableField(value = "FailQty")
    @ApiModelProperty(name = "FailQty" , value = "报废数量(包装间用)")
    private Double FailQty;

    @TableField(value = "OutFailQty")
    @ApiModelProperty(name = "OutFailQty" , value = "外协不良数量(包装间用)")
    private Double OutFailQty;

    @TableField(value = "ReturnQty")
    @ApiModelProperty(name = "ReturnQty" , value = "返修数量(包装间用)")
    private Double ReturnQty;

    @TableField(value = "EndQty")
    @ApiModelProperty(name = "EndQty" , value = "完工数量(包装间用)")
    private Double EndQty;

    @TableField(value = "Specification")
    @ApiModelProperty(name = "Specification" , value = "件号")
    private String Specification;

    @TableField(value = "TrayNo")
    @ApiModelProperty(name = "TrayNo" , value = "托号")
    private String TrayNo;

    @TableField(exist = false)
    private SfcOptrptDetail sfcOptrptDetail;

}
